<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>百朋后台管理系统</title>
    <link rel="stylesheet" type="text/css" href="/tp_bypal/Public/easyui/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="/tp_bypal/Public/easyui/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="/tp_bypal/Public/easyui/demo.css">
    <script type="text/javascript" src="/tp_bypal/Public/easyui/jquery.min.js"></script>
    <script type="text/javascript" src="/tp_bypal/Public/easyui/jquery.easyui.min.js"></script>
</head>
<body>
<div class="report_table">
    <table id="report_table" title="Client Side Pagination" style="width:100%;height:405px" data-options="
                        rownumbers:true,
                        singleSelect:true,
                        autoRowHeight:false,
                        pagination:true,
                        pageSize:10,toolbar:'#tb'">
        <thead data-options="frozen:true">
        <tr>
            <th field="cust_name" width="10%">客户姓名</th>
            <th field="cust_identity" width="15%">客户身份证</th>
        </tr>
        </thead>
        <thead>
        <tr>
            <th field="cust_sex" width="10%">客户性别</th>
            <th field="marry_status" width="10%" >婚姻状况</th>
            <th field="education_status" width="10%" >最高学历</th>
            <th field="degree_status" width="10%" >最高学位</th>
            <th field="cust_phone" width="10%">客户手机号码</th>
            <th field="cust_email" width="10%">客户邮箱</th>
            <th field="communication_province" width="10%">通讯地址省</th>
            <th field="communication_city" width="10%">通讯地址城市</th>
            <th field="communication_district" width="10%">通讯地址区域</th>
            <th field="communication_address" width="10%">通讯地址街道地址</th>
            <th field="communication_postcode" width="10%">通讯地址邮编</th>
            <th field="first_linkman_name" width="10%">第一联系人姓名</th>
            <th field="first_linkman_type" width="10%">第一联系人关系</th>
            <th field="first_linkman_phone" width="10%">第一联系人手机号码</th>
            <th field="second_linkman_name" width="10%">第二联系人姓名</th>
            <th field="second_linkman_type" width="10%">第二联系人关系</th>
            <th field="second_linkman_phone" width="10%">第二联系人手机号码</th>
            <th field="pos_code" width="10%">职业</th>
            <th field="company_name" width="10%">公司名称</th>
            <th field="company_province" width="10%">公司地址省份</th>
            <th field="company_city" width="10%">公司地址城市</th>
            <th field="company_district" width="10%">公司地址区域</th>
            <th field="company_address" width="10%">公司地址街道地址</th>
            <th field="du_code" width="10%">职务</th>
            <th field="ti_code" width="10%">职称</th>
            <th field="live_province" width="10%">居住地址省份</th>
            <th field="live_city" width="10%">居住地址城市</th>
            <th field="live_district" width="10%">居住地址区域</th>
            <th field="live_address" width="10%">居住地址街道地址</th>
            <th field="live_postcode" width="10%">居住地址邮编</th>
            <th field="li_code" width="10%">居住状况</th>
        </tr>
        </thead>
    </table>
</div>
<div id="tb" style="padding:5px;height:auto">
    <div style="margin-bottom:5px">
        <a href="javscript:;" onclick="exportReport();" class="easyui-linkbutton" iconCls="icon-print" plain="true">导出</a>
    </div>
    <form action="../../report/personreport/person_report" method="post" id="searchTable">
        <div>
            客户创建时间 From: <input class="easyui-datebox" id="start_time" data-options="formatter:myformatter,parser:myparser" name="start_time" value="<?php echo ($search_array["start_time"]); ?>" style="width:120px">
            To: <input class="easyui-datebox" name="end_time" id="end_time" data-options="formatter:myformatter,parser:myparser" value="<?php echo ($search_array["end_time"]); ?>" style="width:120px">
            <a href="javascript:;" onclick="submitSearch();" class="easyui-linkbutton" iconCls="icon-search">查询</a>
            <a href="javascript:;" onclick="resetSearch();" class="easyui-linkbutton" iconCls="icon-clear">重置</a>
            <script> $(".selector").find("option[value='<?php echo ($search_array["borrow_status"]); ?>']").attr("selected",true);</script>
        </div>
    </form>
</div>
<script type="text/javascript" src="/tp_bypal/Public/js/common.js"></script>
<script type="text/javascript" src="/tp_bypal/Public/js/report/apply_report.js"></script>
<script>
    $(function(){
        var json='<?php echo ($report_json); ?>';
        var array=eval('('+json+')');
        console.log(array);
        $('#report_table').datagrid({loadFilter:pagerFilter}).datagrid('loadData', array);
    });

</script>
</body>
</html>